package orz.mikeneck.server.locrec.controller;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface ApiHandler {

	public static final String LOGIN_ID = "loginid";

	public static final String LONGITUDE = "longitude";

	public static final String LATITUDE = "latitude";

	public static final String CONTENT_TYPE_JSON = "application/json";

	public static final String CONTENT_TYPE_HTML = "text/html";

	public final class GetParams{
		public static final String MODE_GET = "get";
		public static final String TIME_ZONE = "tz";
		public static final String PAGE_NUM = "page_num";
		public static final String FROM_DATE = "datebegin";
		public static final String TO_DATE = "dateend";
		public static final String SIZE = "size";
		public static final int DEFAULT_SIZE = 20;
	}

	public ApiHandler requestIs(HttpServletRequest req);

	public ApiHandler responseIs(HttpServletResponse resp);

	public ApiHandler calledAt(Date calledAt);

	public boolean execute();
}
